this.parent();
let box = new St.BoxLayout({ vertical: true });
- box.add(this._grid.actor, { y_align: St.Align.START, expand: true });
+ this._stack = new St.Widget({ layout_manager: new Clutter.BinLayout() });
+ this._stack.add_actor(this._grid.actor);
+ box.add(this._stack, { y_align: St.Align.START, expand: true });
this.actor = new St.ScrollView({ x_fill: true,
y_fill: false,
Lang.bind(this, this._ensureIconVisible));
},
+ addFolderPopup: function(popup) {
+ this._stack.add_actor(popup.actor);
+ },
+
_ensureIconVisible: function(icon) {
let adjustment = this.actor.vscroll.adjustment;
let [value, lower, upper, stepIncrement, pageIncrement, pageSize] = adjustment.get_values();